package com.cnplan.service.impl;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.cnplan.entity.ArcFile;
import com.cnplan.entity.ArcFinUnit;
import com.cnplan.mapper.ArcFinUnitMapper;
import com.cnplan.service.ArcFinUnitService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.session.RowBounds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ArcFinUnitServiceImpl implements ArcFinUnitService {

    @Autowired
    private ArcFinUnitMapper arcFinUnitMapper;

    @Override
    public PageInfo findByArcFinUnit(Map map) {
        PageHelper.startPage(Integer.parseInt(map.get("pageNo").toString()),
                Integer.parseInt(map.get("pageSize").toString()));
        List<ArcFinUnit> List=arcFinUnitMapper.getArcFinUnitMapper();
        PageInfo pageInfo = new PageInfo(List);
        return pageInfo;
    }
}
